package saxena.mf.utils;


public enum MFQueries {

	GET_USER_FROM_UID("select user_id, user_name from user where user_id = ?",
			MFDataType.CHAR), 
	
	GET_USER_FROM_NAME(
			"select user_id, user_name from user where user_name = ?",
			MFDataType.CHAR), 
	
	ADD_USER("insert into user(user_id, user_name) values(?,?)",MFDataType.CHAR,MFDataType.CHAR);
	;
	private String sqlQuery = null;
	private MFDataType[] types = null;

	private MFQueries(String query, MFDataType... types) {
		this.sqlQuery = query;
		this.types = types;
	}

	public String getSqlQuery() {
		return sqlQuery;
	}

	public MFDataType[] getTypes() {
		return types;
	}
	
}
